<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>
    <tiles:getAsString name="title" />
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="<c:url value='/res/css/login.css'/>" rel="stylesheet"  type="text/css">
<!-- javascript 정의 -->
<script type="text/javascript">
	var contextPath = "${pageContext.request.contextPath}";
</script>
<!-- /login-extra -->
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<script type="text/javascript" src="<c:url value='/res/js/jquery/jquery-1.10.2.js'/>"></script>
<script type="text/javascript" src="<c:url value='/res/js/jquery/jquery-ui-1.10.4.custom.js'/>"></script>
<script type="text/javascript" src="<c:url value='/res/js/jquery/jquery.mask.min.js'/>"></script>

<script type="text/javascript" src="<c:url value='/res/js/common.js'/>"></script>
<script type="text/javascript" src="<c:url value='/res/js/common-util.js'/>"></script>
<script type="text/javascript" src="<c:url value='/res/js/login.js'/>"></script>
</head>
<body>
	<div class="login">
		<h1>Login to Web App</h1>
		<form:form modelAttribute="loginModel" action="login" method="post" onsubmit="return login.formChk(); return false;">
			<fieldset class="item">
				<form:label path="id">ID</form:label>
				<form:input path="id" title="ID" placeholder="Username" />
				<div class="errors">
				<form:errors path="id" cssClass="errors" class="login username-field" />
				</div>
			</fieldset>
			<fieldset class="item">
				<form:label path="pwd">PASSWORD</form:label>
				<form:password path="pwd" title="PASSWORD" placeholder="Password" />
				<div class="errors">
				<form:errors path="pwd" cssClass="errors" class="login password-field" />
				</div>
			</fieldset>
			<fieldset class="remember_me">
				<label>
					<input id="chkLoginIdSave" name="chkLoginIdSave" type="checkbox" class="field login-checkbox" value="First Choice" tabindex="4" />
					Remember me on this computer
				</label>
			</fieldset>
			<fieldset class="submit">
				<input type="submit" value="Login">
			</fieldset>
		</form:form>
	</div>
</body>
</html>